package cn.xd.base.domain.bean.command;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author : mirzaLin
 * @data : 2023/11/20
 * @description : 更新字典参数
 **/
@Data
public class UpdateDictCommand {
    @NotBlank(message = "字典旧编码不等于空！")
    private String oldCode;
    /**
     * 字典分组id
     */
    @NotNull(message = "字典分组不等于空！")
    private Long groupId;
    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不等于空！")
    private String name;
    /**
     * 字典新编码
     */
    @NotBlank(message = "字典新编码不等于空！")
    private String code;

    @NotBlank(message = "字典配置内容跟类型不能为空!")
    private String dictKeyType;

    /**
     * 备注
     */
    private String remark;
}
